// Copyright 2000-2022 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file.

package org.jetbrains.kotlin.idea.codeInliner

import org.jetbrains.kotlin.idea.refactoring.inline.codeInliner.AbstractPropertyUsageReplacementStrategy
import org.jetbrains.kotlin.idea.refactoring.inline.codeInliner.CodeToInline
import org.jetbrains.kotlin.idea.refactoring.inline.codeInliner.UsageReplacementStrategy

class PropertyUsageReplacementStrategy(readReplacement: CodeToInline?, writeReplacement: CodeToInline?)
    : UsageReplacementStrategy,
      AbstractPropertyUsageReplacementStrategy(readReplacement, writeReplacement) {
    override fun createCallableStrategy(codeToInline: CodeToInline, inlineSetter: Boolean) =
        CallableUsageReplacementStrategy(codeToInline, inlineSetter = inlineSetter)

}
